package io.nutz.nutzsite.module.exam.models;

import java.io.Serializable;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Default;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.One;
import org.nutz.dao.entity.annotation.Table;
								
/**
 * 试卷模板表 exam_papertpl
 * 
 * @author lrw
 * @date 2020-04-08
 */
@Table("exam_papertpl")
public class Papertpl implements Serializable {
	private static final long serialVersionUID = 1L;
	
			@Id
		@Column("id")
	@Comment("编号")
	private Integer id;

		/** 试卷id */
	@Column("ksid")
	@Comment("试卷id")
	private String ksid;

		/** 题库 */
	@Column("qdbid")
	@Comment("题库")
	private Integer qdbid;

		/** 知识点 */
	@Column("kbid")
	@Comment("知识点")
	private Integer kbid;

		/** 题型 */
	@Column("qtid")
	@Comment("题型")
	private Integer qtid;

		/** 难易度 */
	@Column("qteasy")
	@Comment("难易度")
	private Integer qteasy;

		/** 分值 */
	@Column("score")
	@Comment("分值")
	private Float score;

		/** 题量 */
	@Column("qnum")
	@Comment("题量")
	private Integer qnum;

	@Column("qids")
	@Comment("圈定题目")
	@Default("0")
	private String qids;

	@One(field = "ksid")
    private Paperdef paperdef;
	
    @One(field = "qdbid")
    private Qdb qdb;

    @One(field = "kbid")
    private Qdb qdbkb;
    
    @One(field = "qtid")
    private Qtype qtype;
    
	public Qdb getQdb() {
		return qdb;
	}

	public void setQdb(Qdb qdb) {
		this.qdb = qdb;
	}

	public Qtype getQtype() {
		return qtype;
	}

	public Qdb getQdbkb() {
		return qdbkb;
	}

	public void setQdbkb(Qdb qdbkb) {
		this.qdbkb = qdbkb;
	}

	public void setQtype(Qtype qtype) {
		this.qtype = qtype;
	}
	
	public Paperdef getPaperdef() {
		return paperdef;
	}

	public void setPaperdef(Paperdef paperdef) {
		this.paperdef = paperdef;
	}

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}

	

	public String getKsid() {
		return ksid;
	}

	public void setKsid(String ksid) {
		this.ksid = ksid;
	}

	public void setQdbid(Integer qdbid) 
	{
		this.qdbid = qdbid;
	}

	public Integer getQdbid() 
	{
		return qdbid;
	}

	public void setKbid(Integer kbid) 
	{
		this.kbid = kbid;
	}

	public Integer getKbid() 
	{
		return kbid;
	}

	public void setQtid(Integer qtid) 
	{
		this.qtid = qtid;
	}

	public Integer getQtid() 
	{
		return qtid;
	}

	public void setQteasy(Integer qteasy) 
	{
		this.qteasy = qteasy;
	}

	public Integer getQteasy() 
	{
		return qteasy;
	}

	public void setScore(Float score) 
	{
		this.score = score;
	}

	public Float getScore() 
	{
		return score;
	}

	public void setQnum(Integer qnum) 
	{
		this.qnum = qnum;
	}

	public Integer getQnum() 
	{
		return qnum;
	}

	public String getQids() {
		return qids;
	}

	public void setQids(String qids) {
		this.qids = qids;
	}

	/*@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("paperid", getPaperid())
            .append("qdbid", getQdbid())
            .append("kbid", getKbid())
            .append("qtid", getQtid())
            .append("qteasy", getQteasy())
            .append("score", getScore())
            .append("qnum", getQnum())
            .toString();
    }*/
}
